<template>
    <div class="main-frame">
      <el-container height="100%">
        <el-header height="2rem">
          <finance-header></finance-header>
        </el-header>
        <el-container class="main-cont">
          <el-aside class="aside-frame" width="5rem" height="100%">
            <nav-aside></nav-aside>
          </el-aside>
          <el-container>
            <el-main>
              <router-view>

              </router-view>
            </el-main>
            <el-footer height="1.5rem">
              <finance-footer></finance-footer>
            </el-footer>
          </el-container>
        </el-container>
      </el-container>
    </div>
</template>

<script>
import FinanceHeader from "@/components/financeHeader.vue"
import FinanceFooter from "@/components/financeFooter.vue"
import NavAside from "@/components/navAside.vue"
export default {
  name: 'Main',
  data(){
    return {

    }
  },
  components:{
    FinanceHeader,
    FinanceFooter,
    NavAside
  },
  computed:{
    test(){
      return this.$store.state.user;
    }
  }
}
</script>

<style scoped>
.main-frame{
  height: 100%;
}
.el-footer,.el-header{
  padding: 0;
  width: 100%;
}
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    padding: 0;
    height: 100%;
  }
  .el-container {
    height: 100%;
  }
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
